<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
	
	<table class="table">
	<html:form action="/control/group/groupEdit.do?id=${data.id}" method="post">
						<tr class="table_header"><td>修改权限组</td><td>内容</td></tr>
						<tr class= "row1">
							<td>权限组名</td>
							<td><html:text property="name" value="${data.name}"></html:text></td>
						</tr>
						<tr class= "row1">
							<td>审核优先级</td>
							<td><html:text property="level" value="${data.level}"></html:text></td>
						</tr>
						<tr class= "row1">
							<td>设置为新注册用户默认权限组</td>
							<td><html:radio property="isDefault" value="true">是</html:radio></td>
						</tr>
						<tr class= "row1">
							<td>权限集</td>
							
							<td>
							<table>
								<tr>
									<td>前台权限</td>
									<td>后台权限</td>
								</tr>
								
								<tr>
									<td>
									<c:forEach items="${datas}" var="d" varStatus="i">
									<c:if test="${fn:contains(d.value,'front')}">
										<input type="checkbox" name="privileges" value="${d.value}" 
										 <c:forEach items="${data.privileges}" var="dg">
										 	<c:if test="${dg.value == d.value }">
										 		checked="checked" 
										 	</c:if>
										 </c:forEach>
										/>${d.name }<br/>
									</c:if>
									</c:forEach>
									</td>
									<td>
									<c:forEach items="${datas}" var="d" varStatus="i">
									<c:if test="${fn:contains(d.value,'control')}">
										<input type="checkbox" name="privileges" value="${d.value}" 
										 <c:forEach items="${data.privileges}" var="dg">
										 	<c:if test="${dg.value == d.value }">
										 		checked="checked" 
										 	</c:if>
										 </c:forEach>
										/>${d.name }<br/>
									</c:if>
									</c:forEach>
									</td>
								</tr>
							</table>
							</td>
							
						</tr>
						
			<tr>
			<td><html:submit value="确定"></html:submit></td><td><html:reset value="重置"></html:reset></td>
			</tr>
	</html:form>					
	</table>

</body>
</html>